package com.atcd.springcloud.service.Impl;

import com.atcd.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfoOK(Integer id) {
        return "-----对方服务器宕机了 访问back-paymentInfo_OK ,失败 (┬＿┬)";
    }

    @Override
    public String paymentInfoTimeOut(Integer id) {
        return "-----对方服务器宕机了 访问 fall back-paymentInfo_TimeOut ,失败 (┬＿┬)";
    }
}
 
 
